
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 UmsUserRole 分页列表
*/
export function getUmsUserRolePagination(data: any) {
  return axios.get(`${context}/umsUserRole/pagination`, { params: data });
}


/**
 * 获取 UmsUserRole 所有数据
*/
export function getUmsUserRoleAllList(data: any) {
  return axios.get(`${context}/umsUserRole/all`, { params: data });
}


/**
 * 获取 UmsUserRole 详情
*/
export function getUmsUserRoleDetailById(id: any) {
  return axios.get(`${context}/umsUserRole/${id}`, { params:{id} });
}


/**
 * 新增 UmsUserRole
*/
export function addUmsUserRole(data: any) {
  return axios.post(`${context}/umsUserRole`, data);
}

/**
 * 修改 UmsUserRole
*/
export function updateUmsUserRole(data: any) {
  return axios.put(`${context}/umsUserRole`, data);
}

/**
 * 删除 UmsUserRole
*/
export function batchRemoveUmsUserRole(data: any) {
  return axios.post(`${context}/umsUserRole/batchRemove`, data);
}

    